package com.un.ebs.product.mapper;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.un.ebs.product.domain.ProductSkuItemExt;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * <p>
 * 1 Mapper 接口
 * </p>
 *
 * @author liubo
 * @since 2020-02-23
 */
@Component
public interface ProductSkuItemExtMapper extends BaseMapper<ProductSkuItemExt> {

    @SqlParser(filter = true)
    @Select("select * from v_product_sku_item_ext where is_delete=0 and sku_id=#{id} order by sort")
    List<ProductSkuItemExt> queryBySkuId(@Param("id") String id);

}
